﻿using MediatR;
using PoemGame.Domain.Seedwork;

namespace PoemGame.Events.MediatR
{
    /// <summary>
    /// 外部事件MediatR封装
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class OutBoundEvent<T> : INotification where T : BaseEventDataOutBound
    {
        public OutBoundEvent(T eventData)
        {
            EventData = eventData;
        }

        public T EventData { get; private set; }

    }
}
